<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>购买结果</title>
    <link rel="stylesheet" href="/dev/assets/css/geek-job/success-pay.css">
    <link rel="stylesheet" href="/dev/plugins/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/dev/plugins/layui/layui/css/layui.css">
    <link rel="icon" href="/dev/assets/img/geek-job/wanli.jpg" type="image/x-icon">
</head>
<body style="background-color: #CBDCF7">
<div id="nav"></div>
<div class="user-resume-wrapper">
    <div class="my-resumes-box" >
        <div class="resume-thumbnail-list">
            <span class="thanksbuy">购买成功,谢谢惠顾~</span>
            <span class="thanksbuy" id="qrcode-desc1"></span>
        </div>
    </div>
</div>


<script src="/dev/plugins/jquery/jquery.min.js"></script>
<script src="/dev/plugins/bootstrap/js/bootstrap.js"></script>
<script src="/dev/plugins/layui/layui/layui.js"></script>
<script>
    $(function () {
        $("#nav").load("/dev/views/common/nav.html")

        let Inpu = new URLSearchParams(window.location.search);
        var baseInput = Inpu.get('baseInput');
        if (baseInput != null || baseInput != "") {
            $("#input").val(baseInput)
        }

        $.ajax({
            headers:{
                "id":localStorage.getItem("id"),
                "token":localStorage.getItem("token")
            },
            url: `/dev/alipays/task`,
            type: "post"
        })



        let x;
        let countDownTime = 5 * 1000;
        let countDownDate = new Date().getTime() + countDownTime;
        // 更新倒计时
        // clearTimeout(x);
        let seconds = 5
        document.getElementById("qrcode-desc1").innerHTML = "在 " + seconds + "秒后返回简历界面";
        seconds = Number(seconds)-1
        x = setInterval(function (){

            document.getElementById("qrcode-desc1").innerHTML = "在 " + seconds + "秒后返回简历界面";
            seconds = Number(seconds)-1
            console.log(seconds)
            // 如果倒计时结束，停止更新倒计时
            if (seconds === -1) {
                clearInterval(x);
                // document.getElementById("qrcode-desc1").innerHTML = "EXPIRED";
                // getRedirections();
                window.location.href = "/dev/views/geek-job/buy-resume.html";
            }
        }, 1000);


    })
</script>
</body>
</html>